A bootstrap sample of 100 is taken from the aggregated precipitation series to estimate gamma parameters and to calculate the index SPI for the Texas Post Office station in Queensland.
DATA %>%# aggregate monthly precipitation # with a 24-month windowaggregate(.var = prcp, .scale =24 ) %>%# fit a gamma distribution to # obtain the probability value# [0, 1]dist_fit(.dist =gamma(), .var = .agg, .n_boot =100 ) %>%# use the inverse CDF to # convert into z-scoreaugment(.var = .agg)
Confidence interval in the SPI
80% and 95% confidence interval of the Standardized Precipitation Index (SPI-24) for the Texas post office station, in Queensland, Australia. The dashed line at SPI = -2 represents an extreme drought as defined by the SPI. Most parts of the confidence intervals from 2019 to 2020 sit below the extreme drought line and are relatively wide compared to other time periods. This suggests that while it is certain that the Texas post office is suffering from a drastic drought, there is considerable uncertainty in quantifying its severity, given the extremity of the event.
Global Gender Gap Index
Global Gender Gap Index
Summary
A data pipeline comprising nine modules designed for the construction and analysis of indexes within the tidy framework.